package com.example.a513;

import android.os.Bundle;
import android.widget.GridView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import java.util.ArrayList;
import java.util.List;

import adpater.AnimationAdapterGrid;
import entity.Animation;

public class GridViewActivity extends AppCompatActivity {
    private GridView gridView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_grid_view);
        gridView = findViewById(R.id.grid_view);
        List<Animation> data = Animation.getDefault();
        AnimationAdapterGrid adapter = new AnimationAdapterGrid(this, data);
        gridView.setAdapter(adapter);

    }
}